﻿namespace CourseSystem.Core.Util
{
    public sealed class Singleton<T> where T : new()
    {
        static Singleton()
        {
            _instance = new T();
        }

        private static T _instance;

        public static T Instance
        {
            get
            {
                return _instance;
            }
        }
    }
}
